// by Automan. Replace '#_my_car' with your car model.

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread 'SPOILER' 

:SPOILER_13
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @SPOILER_13 

:SPOILER_33
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #_my_car)
else_jump @SPOILER_33 
03C0: 0@ = actor $PLAYER_ACTOR car 

:SPOILER_64
wait 0 
if 
   Actor.DrivingVehicleType($PLAYER_ACTOR, #_my_car)
else_jump @SPOILER_553 
02E3: 1@ = car 0@ speed 
wait 0 
if 
  1@ > 30.5 
else_jump @SPOILER_64 
wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.25 

:SPOILER_200
02E3: 1@ = car 0@ speed 
wait 0 
if 
  29.5 > 1@ 
else_jump @SPOILER_320 
wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.2 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.15 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.1 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.05 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.0 
jump @SPOILER_64 

:SPOILER_320
02E3: 1@ = car 0@ speed 
wait 0 
if 
  1@ > 60.5 
else_jump @SPOILER_200 
wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.3 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.35 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.4 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.45 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.5 
02E3: 1@ = car 0@ speed 
wait 0 
if 
  59.0 > 1@ 
else_jump @SPOILER_320 
wait 0 
08A6: set_car 0@ componentA 4 rotation_to 0.45 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.4 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.35 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.3 
wait 50 
08A6: set_car 0@ componentA 4 rotation_to 0.25 
jump @SPOILER_320 

:SPOILER_553
Car.RemoveReferences(0@)
jump @SPOILER_33 
0A93: end_custom_thread 
